import java.util.ArrayList;
import java.util.List;

public class Demo2 {
    public boolean arrayStringsAreEqual(String[] word1, String[] word2) {
        List<String> sum1=new ArrayList<>();
        List<String> sum2=new ArrayList<>();

        for(String s:word1){

          char []a=s.toCharArray();
                sum1.add("s");
        }
        for(String t:word2){
            if (Character.isLetter(Integer.parseInt(t)))
                sum2.add("t");
        }
        if(sum1.equals(sum2)){
            return true;
        }
        else return false;
    }

    public static void main(String[] args) {

    }
}
